<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@ page import="java.sql.*" %>	

<%String callback = request.getParameter("callback");%>
<%=callback %> (<%

	String regid = request.getParameter("regid");

	Connection conn = null;
	PreparedStatement pstmt = null;
	PreparedStatement regpstmt = null;
	try {

		Class.forName("com.mysql.jdbc.Driver");
		conn = DriverManager.getConnection("jdbc:mysql://localhost/itscreater", "itscreater", "campus123");
		
		String delete = "delete from gcm where regid = ?;";
		pstmt = conn.prepareStatement(delete);
		pstmt.setString(1, regid);
		pstmt.executeUpdate();
		
		
		
	
	}catch (Exception e) {


	}
	finally{
		try{
			pstmt.close();
		}
		catch (Exception ignored){
		}
		try{
			conn.close();
		}
		catch (Exception ignored){
		}
	}
%>);